package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Package：com.tsmti.business.entity
 * @Class：PimsSysPathology
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/12 10:07
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_SYS_PATHOLOGY")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsSysPathology  extends BaseDataEntity<Long> {
    /**
     * id
     */
    private Long id;
    /**
     *中文
     */
    private String patNamech;
    /**
     *英文
     */
    private String patNameen;
    /**
     *是否可用
     */
    private Long patUseFlag;
    /**
     *排序
     */
    private Long patSort;
    /**
     *是否取材
     */
    private Long patIsPieces;
    /**
     *是否包埋
     */
    private Long patIsParts;
    /**
     *是否切片
     */
    private Long patIsSlides;
    /**
     *是否特检
     */
    private Long patIsSpecial;
    /**
     * 页面redis专用
     */
    private String code;
    /**
     *页面redis专用
     */
    private String name;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SYS_PATHOLOGY")
    @SequenceGenerator(name = "SEQ_SYS_PATHOLOGY", sequenceName = "SEQ_SYS_PATHOLOGY", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "PATNAMECH")
    public String getPatNamech() {
        return patNamech;
    }

    public void setPatNamech(String patNamech) {
        this.patNamech = patNamech;
    }

    @Basic
    @Column(name = "PATNAMEEN")
    public String getPatNameen() {
        return patNameen;
    }

    public void setPatNameen(String patNameen) {
        this.patNameen = patNameen;
    }

    @Basic
    @Column(name = "PATUSEFLAG")
    public Long getPatUseFlag() {
        return patUseFlag;
    }

    public void setPatUseFlag(Long patUseFlag) {
        this.patUseFlag = patUseFlag;
    }

    @Basic
    @Column(name = "PATSORT")
    public Long getPatSort() {
        return patSort;
    }

    public void setPatSort(Long patSort) {
        this.patSort = patSort;
    }

    @Basic
    @Column(name = "PATISPIECES")
    public Long getPatIsPieces() {
        return patIsPieces;
    }

    public void setPatIsPieces(Long patIsPieces) {
        this.patIsPieces = patIsPieces;
    }

    @Basic
    @Column(name = "PATISPARTS")
    public Long getPatIsParts() {
        return patIsParts;
    }

    public void setPatIsParts(Long patIsParts) {
        this.patIsParts = patIsParts;
    }

    @Basic
    @Column(name = "PATISSLIDES")
    public Long getPatIsSlides() {
        return patIsSlides;
    }

    public void setPatIsSlides(Long patIsSlides) {
        this.patIsSlides = patIsSlides;
    }

    @Basic
    @Column(name = "PATISSPECIAL")
    public Long getPatIsSpecial() {
        return patIsSpecial;
    }

    public void setPatIsSpecial(Long patIsSpecial) {
        this.patIsSpecial = patIsSpecial;
    }

    @Transient
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Transient
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
